import {
  AccountManageV1Client,
  LoadUserDetailCommand,
} from "@src/services/v1_client";
import { useClient } from "@src/utils/useHelper";

const client = useClient(AccountManageV1Client);

export const fetchUserDetail = (userId?: string) => {
  return client.getUserDetail(new LoadUserDetailCommand({ id: userId }));
};
